<template>
  <h2>{{aComponent.currentTabComponent}}</h2>
  <h2>{{aComponent.tag}}</h2>
  <button @click="
changeComponent(VideoPlay,'test')">切换组件</button>
</template>

<script setup lang="ts">
import VideoPlay from '@/components/VideoPlay.vue';
import {inject} from "vue";

const aComponent = inject('aComponent')
const changeComponent = inject('changeComponent')
</script>

<style scoped>

</style>